<?php

/**
 * SocialEngine
 *
 * @category   Application_Extensions
 * @package    Sitepage
 * @copyright  Copyright 2010-2011 BigStep Technologies Pvt. Ltd.
 * @license    http://www.socialengineaddons.com/license/
 * @version    $Id: content.php 2011-05-05 9:40:21Z SocialEngineAddOns $
 * @author     SocialEngineAddOns
 */
$isActive = Engine_Api::_ ()->getApi ( 'settings', 'core' )->getSetting ( 'sitepage.isActivate', 0 );
if (empty ( $isActive )) {
	return;
}
$view = Zend_Registry::isRegistered ( 'Zend_View' ) ? Zend_Registry::get ( 'Zend_View' ) : null;
$ads_Array = array ();

$sitepagereviewEnabled = Engine_Api::_ ()->getDbtable ( 'modules', 'core' )->isModuleEnabled ( 'sitepagereview' );
if ($sitepagereviewEnabled) {
	$category_pages_multioptions = array ('view_count' => $view->translate ( 'Views' ), 'like_count' => $view->translate ( 'Likes' ), 'comment_count' => $view->translate ( 'Comments' ), 'review_count' => $view->translate ( 'Reviews' ) );
} else {
	$category_pages_multioptions = array ('view_count' => $view->translate ( 'Views' ), 'like_count' => $view->translate ( 'Likes' ), 'comment_count' => $view->translate ( 'Comments' ) );
}

$final_array = array (array ('title' => $view->translate ( 'Page Archives' ), 'description' => $view->translate ( 'Displays the month-wise archives for the pages posted on your site.' ), 'category' => $view->translate ( 'Pages' ), 'type' => 'widget', 'name' => 'sitepage.archives-sitepage', 'defaultParams' => array ('title' => $view->translate ( 'Archives' ), 'titleCount' => true ) ), array ('title' => $view->translate ( 'Navigation Tabs' ), 'description' => $view->translate ( 'Displays the Navigation tabs pages having links of Pages Home, Browse Pages, etc. This widget should be placed at the top of Pages Home and Browse Pages pages.' ), 'category' => $view->translate ( 'Pages' ), 'type' => 'widget', 'name' => 'sitepage.browsenevigation-sitepage', 'defaultParams' => array ('title' => '', 'titleCount' => true ) ), array ('title' => $view->translate ( 'Categories, Sub-categories and 3<sup>rd</sup> Level-categories (sidebar)' ), 'description' => $view->translate ( 'Displays the Categories, Sub-categories and 3<sup>rd</sup> Level-categories of pages in an expandable form. Clicking on them will redirect the viewer to the list of pages created in that category.' ), 'category' => $view->translate ( 'Pages' ), 'type' => 'widget', 'name' => 'sitepage.categories-sitepage', 'defaultParams' => array ('title' => $view->translate ( 'Categories' ), 'titleCount' => true ) ), array ('title' => $view->translate ( 'Categories, Sub-categories and 3<sup>rd</sup> Level-categories' ), 'description' => $view->translate ( 'Displays the Categories, Sub-categories and 3<sup>rd</sup> Level-categories of pages in an expandable form. Clicking on them will redirect the viewer to the list of pages created in that category.' ), 'category' => $view->translate ( 'Pages' ), 'type' => 'widget', 'name' => 'sitepage.categories', 'defaultParams' => array ('title' => $view->translate ( 'Categories' ), 'titleCount' => true ), 'adminForm' => array ('elements' => array (array ('Radio', 'showAllCategories', array ('label' => $view->translate ( 'Do you want all the categories, sub-categories and 3rd level categories to be shown to the user even if they have 0 pages in them?' ), 'multiOptions' => array (1 => 'Yes', 0 => 'No' ), 'value' => 0 ) ), array ('Radio', 'show3rdlevelCategory', array ('label' => $view->translate ( 'Do you want to show 3rd level category to the viewer?' ), 'multiOptions' => array (1 => 'Yes', 0 => 'No' ), 'value' => 1 ) ) ) ) ), array ('title' => $view->translate ( 'Profile Pages' ), 'description' => $view->translate ( 'Displays members\' pages on their profile.' ), 'category' => $view->translate ( 'Pages' ), 'type' => 'widget', 'name' => 'sitepage.profile-sitepage', 'defaultParams' => array ('title' => $view->translate ( 'Pages' ), 'titleCount' => true ) ), array ('title' => $view->translate ( 'Featured Pages Slideshow' ), 'description' => $view->translate ( 'Displays the Featured Pages in the form of an attractive Slideshow with interactive controls. The setting of this widget can be done in the widget settings section of this plugin.' ), 'category' => $view->translate ( 'Pages' ), 'type' => 'widget', 'name' => 'sitepage.slideshow-sitepage', 'defaultParams' => array ('title' => $view->translate ( 'Featured Pages' ), 'titleCount' => true ) ), array ('title' => $view->translate ( 'Post a New Page' ), 'description' => $view->translate ( 'Displays the link to Post a New Page.' ), 'category' => $view->translate ( 'Pages' ), 'type' => 'widget', 'name' => 'sitepage.newpage-sitepage', 'defaultParams' => array ('title' => '', 'titleCount' => true ) ), array ('title' => $view->translate ( 'Most Commented Pages' ), 'description' => $view->translate ( 'Displays the pages having the most number of comments. The setting of this widget can be done in the widget settings section of this plugin.' ), 'category' => $view->translate ( 'Pages' ), 'type' => 'widget', 'name' => 'sitepage.mostcommented-sitepage', 'defaultParams' => array ('title' => $view->translate ( 'Most Commented Pages' ), 'titleCount' => true ) ), array ('title' => $view->translate ( 'Most Liked Pages' ), 'description' => $view->translate ( 'Displays the pages that have been Liked by most number of users. The setting of this widget can be done in the widget settings section of this plugin.' ), 'category' => $view->translate ( 'Pages' ), 'type' => 'widget', 'name' => 'sitepage.mostlikes-sitepage', 'defaultParams' => array ('title' => $view->translate ( 'Most Liked Pages' ), 'titleCount' => true ) ), array ('title' => $view->translate ( 'Popular Page Tags' ), 'description' => $view->translate ( 'Shows popular tags with frequency.' ), 'category' => $view->translate ( 'Pages' ), 'type' => 'widget', 'name' => 'sitepage.tagcloud-sitepage', 'defaultParams' => array ('title' => '', 'titleCount' => true ) ), array ('title' => $view->translate ( 'Recent Pages' ), 'description' => $view->translate ( 'Displays a list of recently posted pages.' ), 'category' => $view->translate ( 'Pages' ), 'type' => 'widget', 'name' => 'sitepage.recentlyposted-sitepage', 'defaultParams' => array ('title' => $view->translate ( 'Recent' ), 'titleCount' => true ) ), array ('title' => $view->translate ( 'Popular Pages' ), 'description' => $view->translate ( 'Displays the popular pages on the site. The setting of this widget can be done in the widget settings section of this plugin.' ), 'category' => $view->translate ( 'Pages' ), 'type' => 'widget', 'name' => 'sitepage.mostviewed-sitepage', 'defaultParams' => array ('title' => $view->translate ( 'Most Popular' ), 'titleCount' => true ) ), array ('title' => $view->translate ( 'Browse Pages' ), 'description' => $view->translate ( 'Displays a list of all the pages on site. This widget should be placed on the Browse Pages page.' ), 'category' => $view->translate ( 'Pages' ), 'type' => 'widget', 'name' => 'sitepage.pages-sitepage', 'defaultParams' => array ('title' => '', 'titleCount' => true ) ), array ('title' => $view->translate ( 'Search Pages form' ), 'description' => $view->translate ( 'Displays the form for searching Pages on the basis of various filters.' ), 'category' => $view->translate ( 'Pages' ), 'type' => 'widget', 'name' => 'sitepage.search-sitepage', 'defaultParams' => array ('title' => '', 'titleCount' => true ) ), array ('title' => $view->translate ( 'Random Pages' ), 'description' => $view->translate ( 'Displays a list of Pages randomly.' ), 'category' => $view->translate ( 'Pages' ), 'type' => 'widget', 'name' => 'sitepage.random-sitepage', 'defaultParams' => array ('title' => $view->translate ( 'Random' ), 'titleCount' => true ) ), array ('title' => $view->translate ( 'Sponsored Pages Carousel' ), 'description' => $view->translate ( 'This widget contains an attractive AJAX based carousel, showcasing the sponsored Pages on the site. The setting of this widget can be done in the widget settings section of this plugin.' ), 'category' => $view->translate ( 'Pages' ), 'type' => 'widget', 'name' => 'sitepage.sponsored-sitepage', 'defaultParams' => array ('title' => $view->translate ( 'Sponsored Pages' ), 'titleCount' => true ) ), array ('title' => $view->translate ( 'Page of the Day' ), 'description' => $view->translate ( 'Displays the Page of the Day as selected by the Admin from the widget settings section of this plugin.' ), 'category' => $view->translate ( 'Pages' ), 'type' => 'widget', 'name' => 'sitepage.item-sitepage', 'defaultParams' => array ('title' => $view->translate ( 'Page of the Day' ), 'titleCount' => true ) ), array ('title' => $view->translate ( 'Recently Viewed Pages' ), 'description' => $view->translate ( 'Displays the recently viewed Pages on the site. The setting of this widget can be done in the widget settings section of this plugin.' ), 'category' => $view->translate ( 'Pages' ), 'type' => 'widget', 'name' => 'sitepage.recentview-sitepage', 'defaultParams' => array ('title' => $view->translate ( 'Recently Viewed' ), 'titleCount' => true ) ), array ('title' => $view->translate ( 'Recently Viewed By Friends' ), 'description' => $view->translate ( 'Displays the Pages that have been recently viewed by friends on the site. The setting of this widget can be done in the widget settings section of this plugin.' ), 'category' => $view->translate ( 'Pages' ), 'type' => 'widget', 'name' => 'sitepage.recentfriend-sitepage', 'defaultParams' => array ('title' => $view->translate ( 'Recently Viewed By Friends' ), 'titleCount' => true ) ), array ('title' => $view->translate ( 'Message for Zero Pages' ), 'description' => $view->translate ( 'This widget should be placed in the top of the middle column of the Pages Home page.' ), 'category' => $view->translate ( 'Pages' ), 'type' => 'widget', 'name' => 'sitepage.zeropage-sitepage', 'defaultParams' => array ('title' => '', 'titleCount' => true ) ), array ('title' => $view->translate ( 'Close Page Message' ), 'description' => $view->translate ( 'If a Page is closed, then show this message.' ), 'category' => $view->translate ( 'Pages' ), 'type' => 'widget', 'name' => 'sitepage.closepage-sitepage', 'defaultParams' => array ('title' => '', 'titleCount' => true ) ), array ('title' => $view->translate ( 'Popular Locations' ), 'description' => $view->translate ( 'Displays the popular locations of Pages. The setting of this widget can be done in the widget settings section of this plugin.' ), 'category' => $view->translate ( 'Pages' ), 'type' => 'widget', 'name' => 'sitepage.popularlocations-sitepage', 'defaultParams' => array ('title' => $view->translate ( 'Popular Locations' ), 'titleCount' => "" ) ), array ('title' => $view->translate ( 'Ajax Based Recently Posted, Popular, Random, Featured and Sponsored Pages' ), 'description' => $view->translate ( "Displays the recently posted, popular, random, featured and sponsored pages in a block in separate ajax based tabs respectively." ), 'category' => $view->translate ( 'Pages' ), 'type' => 'widget', 'name' => 'sitepage.recently-popular-random-sitepage', 'defaultParams' => array ('title' => "", 'titleCount' => "" ) ), array ('title' => $view->translate ( 'Page Profile Overview' ), 'description' => $view->translate ( 'Displays rich overview on Page\'s profile, created by its admin using the editor from Page Dashboard. This should be placed in the Tabbed Blocks area of Page Profile.' ), 'category' => $view->translate ( 'Page Profile' ), 'type' => 'widget', 'name' => 'sitepage.overview-sitepage', 'defaultParams' => array ('title' => $view->translate ( 'Overview' ), 'titleCount' => true ) ), array ('title' => $view->translate ( "Page Profile 'Add to my foursquare' button" ), 'description' => $view->translate ( "This Button will enable page visitors to add the Page\'s place or tip to their foursquare To-Do List, if the Page admin has entered its code. There is also Member Level and Package setting for this button." ), 'category' => $view->translate ( 'Page Profile' ), 'type' => 'widget', 'name' => 'sitepage.foursquare-sitepage', 'defaultParams' => array ('title' => '', 'titleCount' => true ) ), array ('title' => $view->translate ( 'Page Profile Social Share Buttons' ), 'description' => $view->translate ( 'Contains Social Sharing buttons and enables users to easily share Pages on their favorite Social Networks. This widget should be placed on the Page Profile.' ), 'category' => $view->translate ( 'Page Profile' ), 'type' => 'widget', 'name' => 'sitepage.socialshare-sitepage', 'defaultParams' => array ('title' => $view->translate ( 'Social Share' ), 'titleCount' => true ) ), array ('title' => $view->translate ( 'Page Profile Title' ), 'description' => $view->translate ( 'Displays the Title of the Page. This widget should be placed on the Page Profile, in the middle column at the top.' ), 'category' => $view->translate ( 'Page Profile' ), 'type' => 'widget', 'name' => 'sitepage.title-sitepage', 'defaultParams' => array ('title' => '', 'titleCount' => true ) ), array ('title' => $view->translate ( 'Page Profile Info' ), 'description' => $view->translate ( 'This widget forms the Info tab on the Page Profile and displays the information of the Page. It should be placed in the Tabbed Blocks area of the Page Profile.' ), 'category' => $view->translate ( 'Page Profile' ), 'type' => 'widget', 'name' => 'sitepage.info-sitepage', 'defaultParams' => array ('title' => $view->translate ( 'Info' ), 'titleCount' => true ) ), array ('title' => $view->translate ( 'Page Profile Information Page' ), 'description' => $view->translate ( 'Displays the owner, category, tags, views and other information about a Page. This widget should be placed on the Page Profile in the left column.' ), 'category' => $view->translate ( 'Page Profile' ), 'type' => 'widget', 'name' => 'sitepage.information-sitepage', 'defaultParams' => array ('title' => $view->translate ( 'Information' ), 'titleCount' => true ) ), array ('title' => $view->translate ( 'Page Profile Cover Photo' ), 'description' => $view->translate ( 'Displays the main cover photo of a Page. This widget must be placed on the Page Profile at the top of left column.' ), 'category' => $view->translate ( 'Page Profile' ), 'type' => 'widget', 'name' => 'sitepage.mainphoto-sitepage', 'defaultParams' => array ('titleCount' => true ) ), array ('title' => $view->translate ( 'Page Profile Map' ), 'description' => $view->translate ( 'This widget forms the Map tab on the Page Profile. It displays the map showing the Page position as well as the location details of the page. It should be placed in the Tabbed Blocks area of the Page Profile. This feature will be available to Pages based on their Package and Member Level of their owners.' ), 'category' => $view->translate ( 'Page Profile' ), 'type' => 'widget', 'name' => 'sitepage.location-sitepage', 'defaultParams' => array ('title' => $view->translate ( 'Map' ), 'titleCount' => true ) ), array ('title' => $view->translate ( 'Page Profile Options' ), 'description' => $view->translate ( 'Displays the various action link options to users viewing a Page. This widget should be placed on the Page Profile in the left column, below the Page profile photo.' ), 'category' => $view->translate ( 'Page Profile' ), 'type' => 'widget', 'name' => 'sitepage.options-sitepage', 'defaultParams' => array ('title' => '', 'titleCount' => true ) ), array ('title' => $view->translate ( 'Page Profile Owner Page Tags' ), 'description' => $view->translate ( 'Displays all the tags chosen by the Page owner for his Pages. This widget should be placed on the Page Profile.' ), 'category' => $view->translate ( 'Page Profile' ), 'type' => 'widget', 'name' => 'sitepage.tags-sitepage', 'defaultParams' => array ('titleCount' => true ) ), array ('title' => $view->translate ( 'Page Profile Owner Pages' ), 'description' => $view->translate ( 'Displays the other pages of a page owner. This widget should be placed on the Page Profile.' ), 'category' => $view->translate ( 'Page Profile' ), 'type' => 'widget', 'name' => 'sitepage.userpage-sitepage', 'defaultParams' => array ('title' => '', 'titleCount' => true ) ), array ('title' => $view->translate ( 'Page Profile About Page' ), 'description' => $view->translate ( 'Displays the About Us information for pages. This widget should be placed on the Page Profile.' ), 'category' => $view->translate ( 'Page Profile' ), 'type' => 'widget', 'name' => 'sitepage.write-page', 'defaultParams' => array ('title' => '', 'titleCount' => true ) ), array ('title' => $view->translate ( 'Page Profile Like Button for Pages' ), 'description' => $view->translate ( 'This is the Like Button to be placed on the Page Profile. The best place to put this widget is right above the Tabbed Blocks on the Page Profile. If you have the Likes Plugin and Widgets from SocialEngineAddOns installed on your site, then you may replace this button widget with the Like Button for Pages widget of that plugin.' ), 'category' => $view->translate ( 'Page Profile' ), 'type' => 'widget', 'name' => 'sitepage.page-like-button', 'defaultParams' => array ('title' => '' ) ), array ('title' => $view->translate ( 'Page Profile You May Also Like' ), 'description' => $view->translate ( 'Displays the other Pages that a user may like, based on the page being currently viewed. This widget should be placed on the Page Profile.' ), 'category' => $view->translate ( 'Page Profile' ), 'type' => 'widget', 'name' => 'sitepage.suggestedpage-sitepage', 'defaultParams' => array ('title' => $view->translate ( 'You May Also Like' ), 'titleCount' => true ) ), array ('title' => $view->translate ( 'Page Profile Likes' ), 'description' => $view->translate ( 'Displays the users who have liked a Page. This widget should be placed on the Page Profile.' ), 'category' => $view->translate ( 'Page Profile' ), 'type' => 'widget', 'name' => 'sitepage.page-like' ), array ('title' => $view->translate ( 'Page Profile Page Insights' ), 'description' => $view->translate ( 'Displays the insights of a Page to its Page Admins. These insights include metrics like views, likes, comments and active users of the Page. This widget should be placed on the Page Profile.' ), 'category' => $view->translate ( 'Page Profile' ), 'type' => 'widget', 'name' => 'sitepage.insights-sitepage', 'defaultParams' => array ('title' => $view->translate ( 'Insights' ), 'titleCount' => true ) ), array ('title' => $view->translate ( 'Page Profile Alternate Cover Thumb Photo' ), 'description' => $view->translate ( 'Displays the thumb photo of a Page. This works as an alternate profile photo when you have set the layout of Page Profile to be tabbed, from the Page Layout Settings, and have integrated with the "Advertisements / Community Ads Plugin" by SocialEngineAddOns. In that case, the left column of the Page Profile having the main profile photo gets hidden to accomodate Ads. This widget must be placed on the Page Profile at the top of middle column.' ), 'category' => $view->translate ( 'Page Profile' ), 'type' => 'widget', 'name' => 'sitepage.thumbphoto-sitepage', 'defaultParams' => '' ), array ('title' => $view->translate ( 'Page Profile Apps Links' ), 'description' => $view->translate ( "Displays the Apps related links like Documents, Form, Photos, Poll, etc on Page Profile, depending on the Pages related apps installed on your site. This widget should be placed on the Page Profile in the left column." ), 'category' => $view->translate ( 'Page Profile' ), 'type' => 'widget', 'name' => 'sitepage.widgetlinks-sitepage', 'defaultParams' => array ('title' => "", 'titleCount' => "" ) ), 

array ('title' => $this->view->translate ( 'Page Profile Linked Pages' ), 'description' => $this->view->translate ( 'Displays Linked Pages of a Page. This widget should be placed on the Page Profile.' ), 'category' => $this->view->translate ( 'Page Profile' ), 'type' => 'widget', 'name' => 'sitepage.favourite-page', 'defaultParams' => array ('title' => $this->view->translate ( 'Linked Pages' ), 'titleCount' => true ) ), array ('title' => $view->translate ( 'Page Profile Featured Page Admins' ), 'description' => $view->translate ( "Displays the Featured Admins of a page. This widget should be placed on the Page Profile." ), 'category' => $view->translate ( 'Page Profile' ), 'type' => 'widget', 'name' => 'sitepage.featuredowner-sitepage', 'defaultParams' => array ('title' => $view->translate ( "Page admins" ), 'titleCount' => "" ) ), array ('title' => $view->translate ( 'AJAX Search for Pages' ), 'description' => $view->translate ( "This widget searches over Page Titles via AJAX. The search interface is similar to Facebook search." ), 'category' => $view->translate ( 'Pages' ), 'type' => 'widget', 'name' => 'sitepage.searchbox-sitepage', 'defaultParams' => array ('title' => $view->translate ( "Search" ), 'titleCount' => "" ) ), array ('title' => $view->translate ( 'Alphabetic Filtering of Pages' ), 'description' => $view->translate ( "This widget enables users to alphabetically filter the directory items / pages on your site by clicking on the desired alphabet. The widget shows all the alphabets for filtering." ), 'category' => $view->translate ( 'Pages' ), 'type' => 'widget', 'name' => 'sitepage.alphabeticsearch-sitepage', 'defaultParams' => array ('title' => $view->translate ( "" ), 'titleCount' => "" ) ), array ('title' => $view->translate ( 'Categorically Popular Pages' ), 'description' => $view->translate ( 'This attractive widget categorically displays the most popular pages on your site. It displays 5 Pages for each category. From the edit popup of this widget, you can choose the number of categories to show, criteria for popularity and the duration for consideration of popularity.' ), 'category' => $view->translate ( 'Pages' ), 'type' => 'widget', 'name' => 'sitepage.category-pages-sitepage', 'defaultParams' => array ('title' => $view->translate ( 'Popular Pages' ), 'titleCount' => true ), 'adminForm' => array ('elements' => array (array ('Text', 'itemCount', array ('label' => $view->translate ( 'Category Count' ), 'description' => $view->translate ( 'No. of Categories to show. Enter 0 for showing all categories.' ), 'value' => 0 ) ), array ('Text', 'pageCount', array ('label' => $view->translate ( 'Pages Count per Category' ), 'description' => $view->translate ( 'No. of Pages to be shown in each Category.' ), 'value' => 5 ) ), array ('Select', 'popularity', array ('label' => $view->translate ( 'Popularity Criteria' ), 'multiOptions' => $category_pages_multioptions, 'value' => 'view_count' )// 											'onchange'=>'javascript:if($("popularity").value=="view_count"){ $("interval-wrapper").style.display = "none";}else{$("interval-wrapper").style.display = "block"; }',
 ), array ('Select', 'interval', array ('label' => $view->translate ( 'Popularity Duration (This duration will be applicable to all Popularity Criteria except Views.)' ), 'multiOptions' => array ('week' => '1 Week', 'month' => '1 Month', 'overall' => 'Overall' ), 'value' => 'overall' ) ) ) ) ) );

if (Engine_Api::_ ()->getDbtable ( 'modules', 'core' )->isModuleEnabled ( 'communityad' )) {
	$ads_Array = array (array ('title' => $view->translate ( 'Page Ads Widget' ), 'description' => $view->translate ( 'Displays community ads in various widgets and view pages of this plugin.' ), 'category' => $view->translate ( 'Pages' ), 'type' => 'widget', 'name' => 'sitepage.page-ads', 'defaultParams' => array ('title' => '', 'titleCount' => true ) ) );
}
if (! empty ( $ads_Array )) {
	$final_array = array_merge ( $final_array, $ads_Array );
}
return $final_array;
?>